package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap35 extends OSMap
	{
		public function OSMap35()
		{
			super();

			var ground:OSGround = new OSGround(140, 900, 20, 40, 0, false);
			ground.setNoErosionLeft([0, 1]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(160, 920, 40, 20, 0, false);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(0, 740, 140, 340, 0, false);
			ground.setNoErosionDown([112, 113, 114, 115, 116, 117, 118]);
			ground.setNoErosionLeft([0, 7, 14, 21, 28, 35, 42, 49, 56, 63, 70, 77, 84, 91, 98, 105, 112]);
			ground.setNoErosionRight([6, 13, 20, 27, 34, 41, 48, 55, 62, 69, 76, 83, 90, 97, 104, 111, 118]);
			ground.erode();
			add(ground);

			ground = new OSGround(140, 760, 640, 320, 0, false);
			ground.setNoErosionUp([0, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]);
			ground.setNoErosionDown([480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511]);
			ground.setNoErosionLeft([0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 480]);
			ground.setNoErosionRight([31, 63, 95, 127, 159, 191, 223, 255, 287, 319, 351, 383, 415, 447, 479, 511]);
			ground.erode();
			add(ground);

			ground = new OSGround(120, 680, 180, 20, -45, false);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(280, 620, 280, 20, 0, false);
			ground.erode();
			add(ground);

			add(new OSMovingBox(360, 680));

			ground = new OSGround(260, 540, 180, 20, -45, false);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(420, 480, 140, 20, 0, false);
			ground.erode();
			add(ground);

			add(new OSMovingBox(460, 540));

			ground = new OSGround(400, 400, 180, 20, -45, false);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(560, 340, 220, 420, 0, false);
			ground.setNoErosionDown([220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230]);
			ground.setNoErosionLeft([0, 77, 154]);
			ground.setNoErosionRight([43, 54, 65, 76, 87, 98, 109, 120, 131, 142, 153, 164, 175, 186, 197, 208, 219, 230]);
			ground.erode();
			add(ground);

			ground = new OSGround(780, 400, 180, 680, 0, false);
			ground.setNoErosionDown([297, 298, 299, 300, 301, 302, 303, 304, 305]);
			ground.setNoErosionLeft([0, 9, 18, 27, 36, 45, 54, 63, 72, 81, 90, 99, 108, 117, 126, 135, 144, 153, 162, 171, 180, 189, 198, 207, 216, 225, 234, 243, 252, 261, 270, 279, 288, 297]);
			ground.setNoErosionRight([8, 17, 26, 35, 44, 53, 62, 71, 80, 89, 98, 107, 116, 125, 134, 143, 152, 161, 170, 179, 188, 197, 206, 215, 224, 233, 242, 251, 260, 269, 278, 287, 296, 305]);
			ground.erode();
			add(ground);

		}
	}
}
